/*
  This file is part of 'Trivial chess'.

  'Trivial chess' is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  'Trivial chess' is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with 'Trivial chess'.  If not, see <http://www.gnu.org/licenses/>.
*/

/* SVN FILE: $Id$ */
/**
 * @author         $Author$
 * @version        $Rev$
 * @lastrevision   $Date$
 * @filesource     $URL$
 */

#ifndef CASTLINGAVAILABILITYCOM_H_
#define CASTLINGAVAILABILITYCOM_H_

#include "CastlingAvailabilityAbstract.h"

class CastlingAvailabilityCom
	: public CastlingAvailabilityAbstract<CastlingAvailabilityCom> {
public:
	CastlingAvailabilityCom() {}

	bool whiteQueen() const { return this->_whiteQueen; }
	bool blackQueen() const { return this->_blackQueen; }
	bool whiteKing() const  { return this->_whiteKing; }
	bool blackKing() const  { return this->_blackKing; }

	void setWhiteQueen() { this->_whiteQueen = true; }
	void setBlackQueen() { this->_blackQueen = true; }
	void setWhiteKing()  { this->_whiteKing = true; }
	void setBlackKing()  { this->_blackKing = true; }

	void unsetWhiteQueen()  { this->_whiteQueen = false; }
	void unsetBlackQueen()  { this->_blackQueen = false; }
	void unsetWhiteKing()   { this->_whiteKing = false; }
	void unsetBlackKing()   { this->_blackKing = false; }

private:
	bool _whiteQueen;
	bool _whiteKing;
	bool _blackQueen;
	bool _blackKing;
};

#endif /* CASTLINGAVAILABILITYCOM_H_ */
